﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _04交换变量
{
    class Program
    {
        static void Main(string[] args)
        {
            int n1=10;
            int n2 = 20;
            int t;
            t = n1;n1 = n2;n2 = t;
            Console.WriteLine("n1:{0},n2:{1}",n1, n2);
            Console.ReadKey();
        }
    }
}
